package cn.edu.cqyz.wisdom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ⽤户表
 * </p>
 *
 * @author CDHong.it
 * @since 2024-12-18
 */
@Getter
@Setter
@TableName("tbl_users")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ⽤户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * ⽤户昵称
     */
    @TableField("user_name")
    private String userName;

    /**
     * ⽤户头像
     */
    @TableField("user_head_img")
    private String userHeadImg;

    /**
     * ⽤户⼿机号
     */
    @TableField("user_phone")
    private String userPhone;

    /**
     * ⽤户密码
     */
    @TableField("user_password")
    private String userPassword;

    /**
     * 账号状态 1可⽤ 0禁⽤
     */
    @TableField("state")
    private Integer state;

    /**
     * 手机验证码
     * */
    @TableField(exist = false)
    private Integer phoneCode;

    @TableField("create_time")
    private LocalDateTime createTime;
}
